package org.example.biconsumer;

import java.util.function.BiConsumer;

public class Java8BiConsumer2 {
    public static void main(String[] args) {
        addTwo(1,2,(x,y) ->{
            System.err.println(x + y);
        });

        addTwo("Node",".js",(x,y) -> System.err.println(x + y));
    }

    static <T> void addTwo(T a1, T a2, BiConsumer<T,T> func){
        func.accept(a1,a2);
    }
}
